#ifndef MFCSERVER_H
#define MFCSERVER_H

#include "changepass.h"
#include "database.h"
#include "adduser.h"
#include "deluser.h"
#include "exportToExcel.h"
#include "readthread.h"
#include "choosedate.h"
#include "ui_mfcserver.h"

class MFCServer : public QMainWindow
{
	Q_OBJECT

public:
	MFCServer(QWidget *parent = 0, Qt::WFlags flags = 0);
	~MFCServer();

	int port;
	passData passwordData;
	database data;
	QTcpServer *server;

private:
	Ui::MFCServerClass ui;
	void readConf();		
	void startServer();

private slots:
	void exportData();
	void changePassDialog();
	void addUserDialog();
	void delUserDialog();
	void startNewThread();
	void addTableRow();
};

#endif // MFCSERVER_H
